From 35add7ec8f88d86dc00bc8835f580a4705ea7c23 Mon Sep 17 00:00:00 2001 From: Alexandre Emsenhuber Date: Wed, 6 Aug 2008 17:21:22 +0000 Subject: [PATCH] For compatibility with PHP 5.0, it does not accept array as param type --- includes/Diff.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/Diff.php b/includes/Diff.php index a1aa805a0f..7c4ebcdefa 100644 --- a/includes/Diff.php +++ b/includes/Diff.php @@ -30,7 +30,7 @@ * * @author Guy Van den Broeck */ -function wikidiff3_diff(array $from, array $to, $boundRunningTime=FALSE, $max_NP_before_bound = 800000){ +function wikidiff3_diff( /*array*/ $from, /*array*/ $to, $boundRunningTime=FALSE, $max_NP_before_bound = 800000){ wfProfileIn( __METHOD__ ); $m = sizeof($from); @@ -101,7 +101,7 @@ function wikidiff3_diff(array $from, array $to, $boundRunningTime=FALSE, $max_NP return array($result_from, $result_to); } -function wikidiff3_diffPart(array $a, array $b, InLcs $a_inLcs, InLcs $b_inLcs, $m, $n, $offsetx, $offsety, $bestKnownLcs, $boundRunningTime=FALSE, $max_NP_before_bound = 800000){ +function wikidiff3_diffPart( /*array*/ $a, /*array*/ $b, InLcs $a_inLcs, InLcs $b_inLcs, $m, $n, $offsetx, $offsety, $bestKnownLcs, $boundRunningTime=FALSE, $max_NP_before_bound = 800000){ if($bestKnownLcs==0 || $m==0 || $n==0){ return; } -- 2.20.1